<template>
  <div class="home">
    <add-input></add-input>
    <todo-li></todo-li>
    <foot></foot>
  </div>
</template>

<script>
import addInput from "../components/addInput.vue";
import todoLi from "../components/todoLi.vue";
import foot from "../components/foot.vue";
export default {
  name: "Home",
  components: {
    addInput,
    todoLi,
    foot,
  },
  data() {
    return {};
  },

  methods: {},
};
</script>
<style lang="scss">
.home {
  width: 600px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 100px auto;
  padding: 0 20px;
}
input[type="text"] {
  height: 30px;
  width: 100%;
  margin-top: 20px;
  padding: 0 10px;
  box-sizing: border-box;
}
ul {
  border: 1px solid #ccc;
  margin-top: 30px;
  border-radius: 5px;
  li {
    display: flex;
    height: 40px;
    align-items: center;
    padding: 0 10px;

    &:hover {
      background: #ccc;
      button {
        display: inline-block;
      }
    }
  }
}
button {
  width: 60px;
  padding: 4px 0;
  border: none;
  border-radius: 4px;
  background: red;
  display: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}
.foot {
  display: flex;
  height: 60px;
  align-items: center;
}
</style>
